package com.example.warehousewms.mapper;

import com.example.warehousewms.bean.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {

    int insertProduct(Product product);

    int updateProduct(Product product);

    int deleteProduct(Long id);

    Product getProductById(Long id);

    List<Product> getAll();

}
